<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'

import {tagLineApi} from '@/feature/ag/infra/api/tagLineApi'
import CURDTable from '@/framework/components/table/CURDTable'


export default {
  components: {CURDTable},
  data() {
    return {
      option: {
        requestApi: tagLineApi,
        showSelection: true,
        columns: [
          {
            label: '资源链接',
            span: 24,
            width: 'auto',
            required: true,
            hiddenInTable: true,
            prop: 'assetUrl',
            type: ColumnType.IMAGE
          },
          {
            label: '类型',
            searchable: true,
            span: 24,
            width: 'auto',
            required: true,
            prop: 'assetType',
            type: ColumnType.SELECT,
            options: [
              {
                label: '地铁线路图',
                value: 0
              },
              {
                label: '港澳一册通',
                value: 1

              }
            ]
          },
          {
            label: '创建时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtCreate'
          },
          {
            label: '修改时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtModified'
          },
          {
            label: '排序号',
            span: 24,
            required: true,
            width: 80,
            defaultValue: 0,
            prop: 'sortNum',
            type: ColumnType.NUMBER
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

